import request from '@/utils/request'

// 查询论坛-动态列表
export function listDynamic(query) {
  return request({
    url: '/app/forum/dynamic/list',
    method: 'get',
    params: query
  })
}

// 查询论坛-动态详细
export function getDynamic(query) {
  return request({
    url: '/app/forum/dynamic/getInfo',
    method: 'get',
		params: query
  })
}

// 问答发布动态
export function wdSave(data) {
  return request({
    url: '/app/forum/dynamic/wd/save',
    method: 'post',
    data: data
  })
}

// 社区发布动态
export function sqSave(data) {
  return request({
    url: '/app/forum/dynamic/sq/save',
    method: 'post',
    data: data
  })
}

// 修改论坛-动态
export function updateDynamic(data) {
  return request({
    url: '/forum/dynamic',
    method: 'put',
    data: data
  })
}

// 删除论坛-动态
export function delDynamic(id) {
  return request({
    url: '/app/forum/dynamic/' + id,
    method: 'delete'
  })
}
